<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%
	//ArrayList<WishListProductItem> list = (new WishListProduct()).select
%>
<!-- 
	String pro_name = request.getParameter("Q1");
	String prior = request.getParameter("Q2");
	String price = request.getParameter("Q3");
	String num = request.getParameter("Q4");
	String point = request.getParameter("Q5");
	String sum = request.getParameter("Q6");

	pro_name = new String(pro_name.getBytes("ISO-8859-1"), "UTF-8");
	prior = new String(prior.getBytes("ISO-8859-1"), "UTF-8");
	price = new String(price.getBytes("ISO-8859-1"), "UTF-8");
	num = new String(num.getBytes("ISO-8859-1"), "UTF-8");
	point = new String(point.getBytes("ISO-8859-1"), "UTF-8");
	sum = new String(sum.getBytes("ISO-8859-1"), "UTF-8");
 -->
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset=UTF-8 />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>위시리스트</title>

<!-- 모바일 웹 페이지 설정 -->
<link rel="shortcut icon" href="assets/ico/favicon.png" />
<link rel="apple-touch-icon-precomposed"
	href="assets/ico/apple-touch-icon-57-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="assets/ico/apple-touch-icon-72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="assets/ico/apple-touch-icon-114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="assets/ico/apple-touch-icon-144-precomposed.png" />
<!-- bootstrap -->
<link rel="stylesheet" type="text/css"
	href="assets/css/bootstrap.min.css" />
<!-- 나눔고딕 웹 폰트 적용 -->
<link rel="stylesheet" type="text/css" href="assets/css/nanumfont.css" />
<!-- 반응형 웹을 지원하지 않을 경우 -->
<!-- <link rel="stylesheet" href="assets/css/non-responsive.css" /> -->

<!-- IE8 이하 버전 지원 -->
<!--[if lt IE 9]>
		<script type="text/javascript" src="assets/js/html5shiv.js"></script>
		<script type="text/javascript" src="assets/js/respond.min.js"></script>
		<![endif]-->

<!-- IE10 반응형 웹 버그 보완 -->
<!--[if gt IE 9]>
		<link rel="stylesheet" type="text/css" href="assets/css/ie10.css" />
		<script type="text/javascript" src="assets/js/ie10.js"></script>
		<![endif]-->


</head>
<body>
	<div class="container">
		<div class="page-header">
			<h1>WISH LIST</h1>
		</div>
		<table width="100%">
			<thead>
				<tr align="center" height="30px">
					<th align="center"><strong>&nbsp;구분</strong></th>
					<td width="40%" align="center"><strong>상품명</strong></td>
					<td align="center"><strong>우선순위</strong></td>
					<td align="center"><strong>판매가</strong></td>
					<td align="center"><strong>수량</strong></td>
					<td align="center"><strong>적립금</strong></td>
					<td align="center"><strong>합계</strong></td>
					<td align="center"><strong>선택</strong></td>
				</tr>
			</thead>
			<tbody>
				<tr height="30px">
					<%
						/**	for(int i=0; i<i;i++){
										
									}
						 */
					%>
					<th align="center"><strong>&nbsp;기본배송</strong></th>
					<td>
						<!--pro_name%> -->
					</td>
					<td>
						<!-- prior%> -->
					</td>
					<td>
						<!-- price%> -->
					</td>
					<td>
						<!--num%>-->
					</td>
					<td>
						<!--point%>-->
					</td>
					<td>
						<!-- sum%>-->
					</td>
					<td class="text_ct"><input ﻿ name="RowCheck" type="checkbox"
						value="${result.id}" /></td>
				</tr>

			</tbody>
		</table>
		<table width="100%" height="150px" padding="10px">
			<tr>
				<td width="25%" align="left"><strong>&nbsp;총 주문 합계
						금액입니다.</strong></td>
				<td width="25%" align="left"><strong></strong></td>
				<td width="25%" align="right"><strong> </strong></td>
				<td width="25%" align="left"><strong>상품 합계금액 :</strong></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
		</table>


		<a href="#" class="btn btn-sm ">선택삭제</a> <a href="#"
			class="btn btn-sm ">전체삭제</a> <input type="submit" value="결제하기 "
			class="btn btn-sm"> <a href="#" class="btn btn-sm ">쇼핑
			계속하기</a>

	</div>
	<!-- Javascript -->
	<script src="assets/js/jquery.js"></script>
	<script type="text/javascript">
// 1.모두 체크
  function allChk(obj){
      var chkObj = document.getElementsByName("RowCheck");
      var rowCnt = chkObj.length - 1;
      var check = obj.checked;
      if (check) {﻿
          for (var i=0; i<=rowCnt; i++){
           if(chkObj[i].type == "checkbox")
               chkObj[i].checked = true; 
          }
      } else {
          for (var i=0; i<=rowCnt; i++) {
           if(chkObj[i].type == "checkbox"){
               chkObj[i].checked = false; 
           }
          }
      }
  } 
//﻿2. 체크박스 선택된 것 삭제 처리 (N개) 
   function fn_product(){

  var id = "";
  var productChk = document.getElementsByName("RowCheck");
  var chked = false;
  var indexid = false;
  for(i=0; i < memberChk.length; i++){
   if(memberChk[i].checked){
    if(indexid){
      userid = userid + '-';
    }
    userid = userid + memberChk[i].value;
    indexid = true;
   }
  }
  if(!indexid){
   alert("삭제할 상품를 체크해 주세요");
   return;
  }
  document.userForm.delUserid.value = userid;       // 체크된 사용자 아이디를 '-'로 묶은 userid 를 document.userForm.delUserid 의 value로 저장 
  
  var agree=confirm("삭제 하시겠습니까?");
     if (agree){
   document.userForm.execute.value = "userDel";
     document.userForm.submit();
     } 
  }
</body>
</html>

